﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls.Primitives;
using System.Windows;
using System.Windows.Media;

namespace DemoReception
{
    public class CTextValueToggleButton : ToggleButton
    {
        public static readonly DependencyProperty iSourceProperty = DependencyProperty.Register("iSource", typeof(ImageSource), typeof(CTextValueToggleButton));

        public ImageSource iSource
        {
            get { return (ImageSource)GetValue(iSourceProperty); }
            set { SetValue(iSourceProperty, value); }
        }

        public static readonly DependencyProperty iValueProperty = DependencyProperty.Register("iValue", typeof(Int32), typeof(CTextValueToggleButton));

        public Int32 iValue
        {
            get { return (Int32)GetValue(iValueProperty); }
            set { SetValue(iValueProperty, value); }
        }

        static CTextValueToggleButton()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(CTextValueToggleButton), new FrameworkPropertyMetadata(typeof(CTextValueToggleButton)));
        }
    }
}
